package com.atm.physical;

import java.util.HashMap;
import java.util.Map;

//现金分配
public class CashDispenser {
	
	
		private int cashDispenserAmount = 10000;
		
		public void spiltCash(int amount){
			if (cashDispenserAmount >= amount){
				cashDispenserAmount -= amount;
				System.out.println("出钞...");
				System.out.println("出钞成功，请提取现金");
				System.out.println("继续请按：1");
			}
		}
		
		public CashDispenser() {
			super();
		}

		public int getCashDispenserAmount() {
			return cashDispenserAmount;
		}

		public void setCashDispenserAmount(int cashDispenserAmount) {
			this.cashDispenserAmount = cashDispenserAmount;
		}
}
